import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import *


testCase="DBshop041_删除充值记录"

firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu3(firefox,"客户管理","客户余额","充值记录")
firefox.find_element_by_xpath("//td[text()='kunkun']/following-sibling::td[5]/a").click()
time.sleep(5)
try:
    firefox.find_element_by_xpath("//td[text()='kunkun')")

    writeLog("%s 测试失败" % testCase)
    getPhoto(firefox)
except:
    writeLog("%s 测试通过" % testCase)
